package com.andova.egl

import android.content.res.AssetManager

class EGL {
    init {
        System.loadLibrary("egl")
    }

    external fun surfCreated(color: Int)
    external fun surfChanged(width: Int, height: Int)
    external fun drawFrame()
}

class Triangle {
    companion object {
        init {
            System.loadLibrary("gles-sample")
        }

        external fun surfCreated(asset: AssetManager)
        external fun surfChanged(width: Int, height: Int)
        external fun drawFrame()
    }
}

class VAO {
    companion object {
        init {
            System.loadLibrary("gles-sample")
        }

        external fun surfCreated()
        external fun surfChanged(width: Int, height: Int)
        external fun drawFrame()
    }
}

class VBO {
    companion object {
        init {
            System.loadLibrary("gles-sample")
        }

        external fun surfCreated()
        external fun surfChanged(width: Int, height: Int)
        external fun drawFrame()
    }
}